package ejb.ebank.managers;


import javax.persistence.PersistenceContext;
import java.util.List;

import javax.persistence.EntityManager;

import ejb.ebank.entities.BankConfiguration;
import ejb.ebank.entities.BankEmployee;

public class AdministratorMenager implements AdministratorMenagerLocal{

	@PersistenceContext(unitName="ebank") 
	private EntityManager manager;

	public BankConfiguration CreateConfigurationItem(String configurationName,
			String configurationValue) {
		
		BankConfiguration configuration=new BankConfiguration();
		configuration.setConfigurationName(configurationName);
		configuration.setValue(configurationValue);
		
		this.manager.persist(configuration);
		
		return configuration;
	}

	public void SetConfigurationItem(String configurationName,
			String configurationValue) {
		// TODO Auto-generated method stub
		
	}

	public List<BankConfiguration> GetConfigurationList() {
		// TODO Auto-generated method stub
		return null;
	}

	public void SetBankEmployee(BankEmployee employee) {
		// TODO Auto-generated method stub
		
	}
}
